package gameElements;

import java.util.ArrayList;

public class Player extends Sprite {
	private int playerID;
	private int xVelocity;
	private int yVelocity;
	private final int MOVE_SPEED = 3;
	private Map[] mapArray;
	private int[] currentRoom;
	private final int BASEMENT = 0;
	private final int FIRST_FLOOR = 1;
	private final int SECOND_FLOOR = 2;
	
	
	public Player(int id){
		playerID = id;
		
		//start at center of map
		currentRoom = new int[3];
		currentRoom[0] = Map.getMaxRooms();
		currentRoom[1] = Map.getMaxRooms();
		currentRoom[2] = FIRST_FLOOR;
		
	}
	
	public void loadMap(Map[] mA){
		mapArray = new Map[3];
		for (int i = 0; i < mapArray.length; i++) {
			mapArray[i] = mA[i];
		}
	}
	
	public void update(){
		
		
		movement();
	}
	
	public void movement(){
		
		
		setPosition(getXPosition() +  xVelocity, getYPosition() + yVelocity);
		
		collisionCheck();
		
	}
	
	public void collisionCheck(){
		
	}

	public int[] getCurrentRoom() {
		return currentRoom;
	}
	
	
}
